import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';

import 'attribute_optione_name_request_params.dart';

part 'attribute_option_requset_params.g.dart';

@JsonSerializable(explicitToJson: true)
class AttributeOptionRequestParams extends Equatable {
  factory AttributeOptionRequestParams.fromJson(Map<String, dynamic> json) =>
      _$AttributeOptionRequestParamsFromJson(json);

  Map<String, dynamic> toJson() => _$AttributeOptionRequestParamsToJson(this);

  @override
  List<Object> get props => [
        groupType,
        orderValue,
        attributeOptioneNames,
        optionId,
        allowEdit,
        optionName
      ];

  final String groupType;

  final String orderValue;

  final String optionId;

  final bool allowEdit;

  final String optionName;
  List<AttributeOptioneNameRequestParams> attributeOptioneNames;

  AttributeOptionRequestParams(
      {this.groupType,
      this.orderValue,
      this.attributeOptioneNames,
      this.optionId,
      this.allowEdit,
      this.optionName});
}
